package com.home766.entity;

import net.biz.entity.BaseEntity;
import net.biz.entity.Order;

import javax.persistence.*;

/**
 * @author sean
 * 发票
 */
@Entity
@Table(name="766_invoice")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "766_invoice_sequence")
public class Invoice extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1055414479635111852L;
	
	/**单位名称*/
	private String organizationName;
	/**纳税人识别码*/
	private String registrationCode;
	/**注册地址*/
	private String registerAddress;
	/**注册电话*/
	private String registerPhone;
	/**开户银行*/
	private String bankOfDeposit;
	/**银行账户*/
	private String bankAccount;
	/**收件人*/
	private String consignee;
	/**收件人地址*/
	private String address;
	/**收件人电话*/
	private String phone;
	/**订单*/
	private Order orderEntity;
	public String getOrganizationName() {
		return organizationName;
	}
	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}
	public String getRegistrationCode() {
		return registrationCode;
	}
	public void setRegistrationCode(String registrationCode) {
		this.registrationCode = registrationCode;
	}
	public String getRegisterAddress() {
		return registerAddress;
	}
	public void setRegisterAddress(String registerAddress) {
		this.registerAddress = registerAddress;
	}
	public String getRegisterPhone() {
		return registerPhone;
	}
	public void setRegisterPhone(String registerPhone) {
		this.registerPhone = registerPhone;
	}
	public String getBankOfDeposit() {
		return bankOfDeposit;
	}
	public void setBankOfDeposit(String bankOfDeposit) {
		this.bankOfDeposit = bankOfDeposit;
	}
	public String getBankAccount() {
		return bankAccount;
	}
	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}
	public String getConsignee() {
		return consignee;
	}
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	@OneToOne(cascade=CascadeType.REMOVE,fetch=FetchType.LAZY,targetEntity=Order.class)
	public Order getOrderEntity() {
		return orderEntity;
	}
	public void setOrderEntity(Order orderEntity) {
		this.orderEntity = orderEntity;
	}
	
	
}
